home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXT Education Software Sampler 1992 Fall
/
NeXT Education Software Sampler 1992 Fall.iso
/
SoundAndMusic
/
cmix
/
Minc
/
M2.doc
< prev
next >
Wrap
Text File
|
1991-03-16
|
924b
|
33 lines
MinC - MinC is not C version 1.1
I added the following features(please test them and send me comments):
1) function calls can return values
e.g. i = rand(j)
NOTE: those are calls to your own C-functions.
You may adjust your dispatcher and your functions accordingly
2) assignment statements have the value of the assignment.
e.g. i = j = 5
while (i=j) == 5 { mumblings .. }
3) strings can be passed as arguments.
e.g. file_id = open("name of file",2)
printf("some string %f %f\n",i,j)
/* of course, the dispatcher has to know about printf */
NOTE: the string pointer is passed as a double; to convert
back, you have to first cast it into an integer, and then
you have to cast the integer into a char*.
4) use '=' for assigment; and '==' as the booleam equal operator.
see further examples in testfile t3.m.
4/17/86 ***lars.